package com.ruoyi.activiti.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activiti.mapper.ActReDeploymentMapper;
import com.ruoyi.activiti.domain.ActReDeployment;
import com.ruoyi.activiti.service.IActReDeploymentService;
import com.ruoyi.common.core.text.Convert;

/**
 * activitiService业务层处理
 * 
 * @author ldx
 * @date 2020-12-05
 */
@Service
public class ActReDeploymentServiceImpl implements IActReDeploymentService 
{
    @Autowired
    private ActReDeploymentMapper actReDeploymentMapper;

    /**
     * 查询activiti
     * 
     * @param id activitiID
     * @return activiti
     */
    @Override
    public ActReDeployment selectActReDeploymentById(String id)
    {
        return actReDeploymentMapper.selectActReDeploymentById(id);
    }

    /**
     * 查询activiti列表
     * 
     * @param actReDeployment activiti
     * @return activiti
     */
    @Override
    public List<ActReDeployment> selectActReDeploymentList(ActReDeployment actReDeployment)
    {
        return actReDeploymentMapper.selectActReDeploymentList(actReDeployment);
    }

    /**
     * 新增activiti
     * 
     * @param actReDeployment activiti
     * @return 结果
     */
    @Override
    public int insertActReDeployment(ActReDeployment actReDeployment)
    {
        return actReDeploymentMapper.insertActReDeployment(actReDeployment);
    }

    /**
     * 修改activiti
     * 
     * @param actReDeployment activiti
     * @return 结果
     */
    @Override
    public int updateActReDeployment(ActReDeployment actReDeployment)
    {
        return actReDeploymentMapper.updateActReDeployment(actReDeployment);
    }

    /**
     * 删除activiti对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActReDeploymentByIds(String ids)
    {
        return actReDeploymentMapper.deleteActReDeploymentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除activiti信息
     * 
     * @param id activitiID
     * @return 结果
     */
    @Override
    public int deleteActReDeploymentById(String id)
    {
        return actReDeploymentMapper.deleteActReDeploymentById(id);
    }
}
